package dancetiktokenumsmysql

const (
	DanceActivitiesNoUp    = 0 //未上架
	DanceActivitiesUp      = 1 //上架
	DanceActivitiesDownUp  = 2 //下架
	DanceActivitiesCloseUp = 3 //结束
)

type DanceActivitiesUpEnums struct {
}

var DanceActivitiesUpEnumsObject DanceActivitiesUpEnums

func (e DanceActivitiesUpEnums) Tags() []int {
	return []int{
		DanceActivitiesNoUp,
		DanceActivitiesUp,
		DanceActivitiesDownUp,
		DanceActivitiesCloseUp,
	}
}

func (e DanceActivitiesUpEnums) TagsMap() map[int]int {
	m := make(map[int]int)
	for _, s := range e.Tags() {
		m[s] = s
	}
	return m
}

func (e DanceActivitiesUpEnums) TagsString(tag int) string {
	switch tag {
	case DanceActivitiesNoUp:
		return "未上架"
	case DanceActivitiesUp:
		return "上架"
	case DanceActivitiesDownUp:
		return "下架"
	case DanceActivitiesCloseUp:
		return "结束"
	default:
		return "未上架"
	}
}
